@extends('admin.common.list')
@section('content')


<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 站外管理 <span class="c-gray en">&gt;</span> 友情链接列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
		
	<div class="Hui-article">
		<article class="cl pd-20">

			<div class="cl pd-5 bg-1 bk-gray mt-20"> 
				<a class="btn btn-primary radius" href="javascript:;" onclick="addHtml('添加友情链接','{{url('admin/friendly_link/create')}}','800','800')"><i class="Hui-iconfont"></i> 添加友情链接</a>
				<span class="r">共有数据：<strong>{{$count}}</strong> 条</span> </div>
			<div class="mt-10">
				<table class="table table-border table-bordered table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="70">ID</th>
							<th width="200">标题</th>
							<th width="200">url</th>
							<th width="120">排序</th>
							<th>是否显示</th>
							<th>创建时间</th>
							<th>修改时间</th>
							<th width="100">操作</th>
						</tr>
					</thead>
					<tbody>
						@foreach($friendlyLinkList as $k => $v)
						<tr class="text-c">
							<td>{{$v['id']}}</td>
							<td>{{$v['title']}}</td>
							<td>{{$v['url']}}</td>
							<td>{{$v['sort']}}</td>
							<td>{{$v->isShow()}}</td>
							<td>{{$v['created_at']}}</td>
							<td>{{$v['updated_at']}}</td>
							<td class="f-14 product-brand-manage">
								<a style="text-decoration:none" onClick="addHtml('编辑友情链接','{{url('admin/friendly_link',[$v['id'],'edit'])}}','800','800')" href="javascript:;" title="编辑">
									<i class="Hui-iconfont">&#xe6df;</i>
								</a> 
								<a style="text-decoration:none" class="ml-5" onClick="delData('{{url('admin/friendly_link',[$v['id']])}}')" href="javascript:;" title="删除">
									<i class="Hui-iconfont">&#xe6e2;</i>
								</a>
							</td>
						</tr>
						@endforeach
					</tbody>
				</table>
				{{$friendlyLinkList->render() }}
			</div>
		</article>
	</div>
</section>


@endsection